Objective-C Programming For Dummies by Neal Goldstein & Karl G. Kowalski

Objective-C Programming For Dummies by Neal Goldstein & Karl G. Kowalski

Author:Neal Goldstein & Karl G. Kowalski
Language: eng
Format: epub
Publisher: For Dummies
Published: 2012-09-26T04:00:00+00:00


In Figure 8-9, you can see that the Breakpoint button to the left of the Activity view has inverted. This lets you know that you have at least one breakpoint set. If you click that button, it temporarily turns off all breakpoints (if you think you fixed something and want to see how your program runs without all those pesky breakpoints).

When I build and run the program again (as you can see in the Editor window in Figure 8-10), the program has stopped executing right at the breakpoint I set.

You can see the source code around the breakpoint where the Debugger has halted in the Editor area. You can also see in the stack pane on the left that you went from main to [Budget spendDollars:]. In the Variables pane, you can see that I clicked the disclosure triangle next to the self variable. Under self are the object’s instance variables. (I want to remind you, as I explain in Chapter 6, that self is the “hidden” argument in every message and is a pointer to the object’s instance variables.) You can see that the exchangeRate is 1.25, as it should be, and budget is 1000, as you would expect before the first transaction. You can also see the dollars argument, which is the NSNumber object I created. If you had any local variables, you would have also seen them as you did in Figure 8-8.

Figure 8-10: Stopping at a breakpoint.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(56033)
What's Done in Darkness by Kayla Perrin(26595)
The Fifty Shades Trilogy & Grey by E L James(19080)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(19058)
Shot Through the Heart by Mercy Celeste(18936)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(17113)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(16994)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(16878)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16825)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16447)
The Subtle Art of Not Giving a F*ck by Mark Manson(14353)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14142)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13646)
Scorched Earth by Nick Kyme(12771)
Drei Generationen auf dem Jakobsweg by Stein Pia(10965)
Suna by Ziefle Pia(10889)
Scythe by Neal Shusterman(10339)
The Ultimate Python Exercise Book: 700 Practical Exercises for Beginners with Quiz Questions by Copy(9576)
D:\Jan\FTP\HOL\Work\Alien Breed - Tower Assault CD32 Alien Breed II - The Horror Continues Manual 1.jpg by PDFCreator(9554)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(9522)